package com.wechat.DAO;


import com.wechat.pojo.User;
import com.wechat.pojo.UserInfo;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public interface UserInfoDAO {
    public abstract String add(@NotNull String username, @NotNull String nickname, @NotNull String sex, @Nullable String country, @Nullable String province, @Nullable String city, @NotNull String HPUrl );

    public abstract String update(@NotNull String username, @Nullable String nickname, @Nullable String sex, @Nullable String country, @Nullable String province, @Nullable String city, @Nullable String HPUrl);

    public abstract UserInfo query(String username);

    public Boolean updateNickname(String value,String username);
    public Boolean updateHPUrl(String value,String username);
    public Boolean updateCountry(String value,String username);
    public Boolean updateProvince(String value,String username);
    public Boolean updateCity(String value,String username);
    public Boolean updateSex(String value,String username);
}
